package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysZxContentMapper;
import com.ruoyi.system.domain.SysZxContent;
import com.ruoyi.system.service.ISysZxContentService;

/**
 * 资讯内容维护Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-04-03
 */
@Service
public class SysZxContentServiceImpl implements ISysZxContentService 
{
    @Autowired
    private SysZxContentMapper sysZxContentMapper;

    /**
     * 查询资讯内容维护
     * 
     * @param contentid 资讯内容维护主键
     * @return 资讯内容维护
     */
    @Override
    public SysZxContent selectSysZxContentByContentid(Long contentid)
    {
        return sysZxContentMapper.selectSysZxContentByContentid(contentid);
    }

    /**
     * 查询资讯内容维护列表
     * 
     * @param sysZxContent 资讯内容维护
     * @return 资讯内容维护
     */
    @Override
    public List<SysZxContent> selectSysZxContentList(SysZxContent sysZxContent)
    {
        return sysZxContentMapper.selectSysZxContentList(sysZxContent);
    }

    /**
     * 新增资讯内容维护
     * 
     * @param sysZxContent 资讯内容维护
     * @return 结果
     */
    @Override
    public int insertSysZxContent(SysZxContent sysZxContent)
    {
        return sysZxContentMapper.insertSysZxContent(sysZxContent);
    }

    /**
     * 修改资讯内容维护
     * 
     * @param sysZxContent 资讯内容维护
     * @return 结果
     */
    @Override
    public int updateSysZxContent(SysZxContent sysZxContent)
    {
        return sysZxContentMapper.updateSysZxContent(sysZxContent);
    }

    /**
     * 批量删除资讯内容维护
     * 
     * @param contentids 需要删除的资讯内容维护主键
     * @return 结果
     */
    @Override
    public int deleteSysZxContentByContentids(Long[] contentids)
    {
        return sysZxContentMapper.deleteSysZxContentByContentids(contentids);
    }

    /**
     * 删除资讯内容维护信息
     * 
     * @param contentid 资讯内容维护主键
     * @return 结果
     */
    @Override
    public int deleteSysZxContentByContentid(Long contentid)
    {
        return sysZxContentMapper.deleteSysZxContentByContentid(contentid);
    }
}
